package com.yonyou.brigade.ybz.model;

import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * 数据建模
 *
 * @author kangfw5@yonyou.com
 * @since 2018-08-15
 */
@TableName("cnv_outpropertydef")
public class CnvOutpropertydef extends Model<CnvOutpropertydef> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 组合方式
     */
    private String assemblytype;
    /**
     * 数据类型
     */
    private Integer datatype;
    /**
     * 外部标识
     */
    private String outeridentifier;
    /**
     * 属性编码
     */
    private String propertycode;
    /**
     * 属性名称
     */
    private String propertyname;
    /**
     * 关联外部实体
     */
    private String refouterentity;
    private Integer rownumber;
    /**
     * 外部实体ID
     */
    private String outerentityid;
    private Date ts;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAssemblytype() {
        return assemblytype;
    }

    public void setAssemblytype(String assemblytype) {
        this.assemblytype = assemblytype;
    }

    public Integer getDatatype() {
        return datatype;
    }

    public void setDatatype(Integer datatype) {
        this.datatype = datatype;
    }

    public String getOuteridentifier() {
        return outeridentifier;
    }

    public void setOuteridentifier(String outeridentifier) {
        this.outeridentifier = outeridentifier;
    }

    public String getPropertycode() {
        return propertycode;
    }

    public void setPropertycode(String propertycode) {
        this.propertycode = propertycode;
    }

    public String getPropertyname() {
        return propertyname;
    }

    public void setPropertyname(String propertyname) {
        this.propertyname = propertyname;
    }

    public String getRefouterentity() {
        return refouterentity;
    }

    public void setRefouterentity(String refouterentity) {
        this.refouterentity = refouterentity;
    }

    public Integer getRownumber() {
        return rownumber;
    }

    public void setRownumber(Integer rownumber) {
        this.rownumber = rownumber;
    }

    public String getOuterentityid() {
        return outerentityid;
    }

    public void setOuterentityid(String outerentityid) {
        this.outerentityid = outerentityid;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String ASSEMBLYTYPE = "assemblytype";

    public static final String DATATYPE = "datatype";

    public static final String OUTERIDENTIFIER = "outeridentifier";

    public static final String PROPERTYCODE = "propertycode";

    public static final String PROPERTYNAME = "propertyname";

    public static final String REFOUTERENTITY = "refouterentity";

    public static final String ROWNUMBER = "rownumber";

    public static final String OUTERENTITYID = "outerentityid";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CnvOutpropertydef{" +
                "id=" + id +
                ", assemblytype=" + assemblytype +
                ", datatype=" + datatype +
                ", outeridentifier=" + outeridentifier +
                ", propertycode=" + propertycode +
                ", propertyname=" + propertyname +
                ", refouterentity=" + refouterentity +
                ", rownumber=" + rownumber +
                ", outerentityid=" + outerentityid +
                ", ts=" + ts +
                "}";
    }
}
